{include file="public_head" /}

<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">

<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">
                        <h3>评论管理</h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>different form elements</small>-->
                                </h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" enctype="multipart/form-data" action=""
                                      method="post" id="registerForm">

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">缩 略 图：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                                    <div>
                                                        <img src="__PUBLIC__/{$item.thumb_img}"
                                                             width="100" height="100"
                                                             style="padding: 10px;"
                                                             onerror="this.src='__STATIC__/images/default.png'"
                                                        />
                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                    </div>
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">商品名称：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                                {$item.title}
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">商品属性：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$item.attr|default='暂无属性'}
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">买家账号：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$item.username}
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">评 分 数：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$item.grade} 星
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">评论图片：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {empty name='$item.picArr'}

                                            暂无图片

                                            {else/}

                                            {foreach name="$item['picArr']" item="value"}
                                            <img src="__PUBLIC__/{$value['path']}"
                                                 width="100" height="100"
                                                 style="padding: 10px;"
                                                 onerror="this.src='__STATIC__/images/default.png'"
                                            />
                                            {/foreach}

                                            {/empty}
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">评论内容：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$item.content}
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">审核状态：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <label class="radio_box">
                                                <input type="radio" name="status" id="status_1" class="cartradio"
                                                       value="1"
                                                       datatype="*"
                                                       nullmsg="请选择启用状态！" errormsg="请选择启用状态！"
                                                       {eq name='item.status|default=""' value='1' }
                                                       checked
                                                       {/eq}
                                                >&nbsp;&nbsp;
                                                <label for="status_1"></label>
                                                <span>是</span>
                                                &nbsp;&nbsp;
                                            </label>
                                            <label class="radio_box">
                                                <input type="radio" name="status" id="status_2" class="cartradio"
                                                       value="2"
                                                       datatype="*"
                                                       nullmsg="请选择启用状态！" errormsg="请选择启用状态！"
                                                       {eq name='item.status|default=""' value='2' }
                                                       checked
                                                       {/eq}
                                                >&nbsp;&nbsp;
                                                <label for="status_2"></label>
                                                <span>否</span>
                                                &nbsp;&nbsp;
                                            </label>
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <!--<div class="form-group">-->
                                        <!--<label class="control-label col-md-3 col-sm-3 col-xs-12">回复状态：</label>-->
                                        <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                                            <!--<label class="radio_box">-->
                                                <!--<input type="radio" name="reply_status" id="reply_status_1" class="cartradio"-->
                                                       <!--value="1"-->
                                                       <!--datatype="*"-->
                                                       <!--nullmsg="请选择启用状态！" errormsg="请选择启用状态！"-->
                                                       <!--{eq name='item.reply_status|default=""' value='1' }-->
                                                       <!--checked-->
                                                       <!--{/eq}-->
                                                <!--&gt;&nbsp;&nbsp;-->
                                                <!--<label for="reply_status_1"></label>-->
                                                <!--<span>是</span>-->
                                                <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                            <!--<label class="radio_box">-->
                                                <!--<input type="radio" name="reply_status" id="reply_status_2" class="cartradio"-->
                                                       <!--value="2"-->
                                                       <!--datatype="*"-->
                                                       <!--nullmsg="请选择启用状态！" errormsg="请选择启用状态！"-->
                                                       <!--{eq name='item.reply_status|default=""' value='2' }-->
                                                       <!--checked-->
                                                       <!--{/eq}-->
                                                <!--&gt;&nbsp;&nbsp;-->
                                                <!--<label for="reply_status_2"></label>-->
                                                <!--<span>否</span>-->
                                                <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                        <!--</div>-->
                                    <!--</div>-->

                                    <!--<div class="divider-dashed"></div>-->

                                    <!--<div class="form-group">-->
                                        <!--<label class="control-label col-md-3 col-sm-3 col-xs-12">回复内容：</label>-->
                                        <!--<div class="col-md-1 col-sm-6 col-xs-12" style="margin-top: 10px;">-->
                                                <!--<textarea type="text" placeholder="回复内容,不填写留空" style="width: 500px;height: 100px;"-->
                                                          <!--class="form-control col-md-7 col-xs-12" name="reply">{$item.reply|default=''}</textarea>-->
                                            <!--<div style="width:500px;clear: both">-->
                                                <!--<span style="font-size: 16px;color: red">注：只有在回复状态变成是的时候填写</span>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->

                                    <div class="ln_solid"></div>

                                    <div class="form-group">
                                        {present name="$item.id"}
                                        <input type="hidden" name="id" value="{$item.id}">
                                        {/present}
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            <button type="submit" class="btn btn-primary">提交</button>
                                            <a type="reset" class="btn btn-success" onclick="history.go(-1)">返回</a>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<script>

    // validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的店铺商品提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }

        // select2
        $(".select2_single").select2({
            placeholder: "请选择快递公司",
            allowClear: true
        });

        $(".select2_single2").select2({
            placeholder: "请选择订单状态",
            allowClear: true
        });

        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });
    })
</script>
</body>

</html>
